# 使用Alpine Linux作为基础镜像
FROM registry.cn-hangzhou.aliyuncs.com/hup2c/alpine

# 换源
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories

RUN apk --update add tzdata && \
    cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
    echo "Asia/Shanghai" > /etc/timezone && \
    rm -rf /var/cache/apk/*

WORKDIR /workspace

CMD [ "./iec104" ]
